package com.blockchain.securewallet.model.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Lopez on 2018/6/14.
 */

@Entity
public class FeeSetRecord {

    //暂定2种
    public static final int TYPE_BTC_COIN = 0;
    public static final int TYPE_ETH_COIN = 1;

    @Id(autoincrement = true)
    private Long id;

    //币种
    @Unique
    private int type;

    // true表示选择最佳手续费
    // false表示选择自定义手续费
    private boolean isDefault;

    @Generated(hash = 1943116402)
    public FeeSetRecord(Long id, int type, boolean isDefault) {
        this.id = id;
        this.type = type;
        this.isDefault = isDefault;
    }

    @Generated(hash = 1613309171)
    public FeeSetRecord() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean getIsDefault() {
        return this.isDefault;
    }

    public void setIsDefault(boolean isDefault) {
        this.isDefault = isDefault;
    }


}
